/*
 * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.analysis.api.standalone.fir.test.cases.generated.cases.components.compileTimeConstantProvider;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.analysis.api.standalone.fir.test.configurators.AnalysisApiFirStandaloneModeTestConfiguratorFactory;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfiguratorFactoryData;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfigurator;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.TestModuleKind;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.FrontendKind;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisSessionMode;
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiMode;
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.components.compileTimeConstantProvider.AbstractCompileTimeConstantEvaluatorTest;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;

import java.io.File;
import java.util.regex.Pattern;

/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate")
@TestDataPath("$PROJECT_ROOT")
public class FirStandaloneNormalAnalysisSourceModuleCompileTimeConstantEvaluatorTestGenerated extends AbstractCompileTimeConstantEvaluatorTest {
  @NotNull
  @Override
  public AnalysisApiTestConfigurator getConfigurator() {
    return AnalysisApiFirStandaloneModeTestConfiguratorFactory.INSTANCE.createConfigurator(
      new AnalysisApiTestConfiguratorFactoryData(
        FrontendKind.Fir,
        TestModuleKind.Source,
        AnalysisSessionMode.Normal,
        AnalysisApiMode.Standalone
      )
    );
  }

  @Test
  public void testAllFilesPresentInEvaluate() {
    KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate"), Pattern.compile("^(.+)\\.kt$"), null, true);
  }

  @Test
  @TestMetadata("arrayLiteral.kt")
  public void testArrayLiteral() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/arrayLiteral.kt");
  }

  @Test
  @TestMetadata("arrayWithInc.kt")
  public void testArrayWithInc() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/arrayWithInc.kt");
  }

  @Test
  @TestMetadata("backingFieldAccessInPropertySetter.kt")
  public void testBackingFieldAccessInPropertySetter() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/backingFieldAccessInPropertySetter.kt");
  }

  @Test
  @TestMetadata("binaryExpressionWithString.kt")
  public void testBinaryExpressionWithString() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/binaryExpressionWithString.kt");
  }

  @Test
  @TestMetadata("charProperty_code.kt")
  public void testCharProperty_code() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/charProperty_code.kt");
  }

  @Test
  @TestMetadata("char_code.kt")
  public void testChar_code() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/char_code.kt");
  }

  @Test
  @TestMetadata("classLiteral.kt")
  public void testClassLiteral() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/classLiteral.kt");
  }

  @Test
  @TestMetadata("complexLogicExpression.kt")
  public void testComplexLogicExpression() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/complexLogicExpression.kt");
  }

  @Test
  @TestMetadata("constLiteralPropertyInAnnotation.kt")
  public void testConstLiteralPropertyInAnnotation() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/constLiteralPropertyInAnnotation.kt");
  }

  @Test
  @TestMetadata("constPropertyInAnnotation.kt")
  public void testConstPropertyInAnnotation() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/constPropertyInAnnotation.kt");
  }

  @Test
  @TestMetadata("differentNumberTypesComparison.kt")
  public void testDifferentNumberTypesComparison() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/differentNumberTypesComparison.kt");
  }

  @Test
  @TestMetadata("doubleLiteralsPlusAndEqual.kt")
  public void testDoubleLiteralsPlusAndEqual() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/doubleLiteralsPlusAndEqual.kt");
  }

  @Test
  @TestMetadata("enumValue.kt")
  public void testEnumValue() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/enumValue.kt");
  }

  @Test
  @TestMetadata("equalsFunOnEqualInts.kt")
  public void testEqualsFunOnEqualInts() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/equalsFunOnEqualInts.kt");
  }

  @Test
  @TestMetadata("expressionWithEquals.kt")
  public void testExpressionWithEquals() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/expressionWithEquals.kt");
  }

  @Test
  @TestMetadata("floatLiteralsPlusAndEqual.kt")
  public void testFloatLiteralsPlusAndEqual() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/floatLiteralsPlusAndEqual.kt");
  }

  @Test
  @TestMetadata("functionReference.kt")
  public void testFunctionReference() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/functionReference.kt");
  }

  @Test
  @TestMetadata("greaterThan_Int.kt")
  public void testGreaterThan_Int() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/greaterThan_Int.kt");
  }

  @Test
  @TestMetadata("integerLiteral_minusOne_entire.kt")
  public void testIntegerLiteral_minusOne_entire() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_entire.kt");
  }

  @Test
  @TestMetadata("integerLiteral_minusOne_justOne.kt")
  public void testIntegerLiteral_minusOne_justOne() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_minusOne_justOne.kt");
  }

  @Test
  @TestMetadata("integerLiteral_plusOne_entire.kt")
  public void testIntegerLiteral_plusOne_entire() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_plusOne_entire.kt");
  }

  @Test
  @TestMetadata("integerLiteral_plusOne_justOne.kt")
  public void testIntegerLiteral_plusOne_justOne() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteral_plusOne_justOne.kt");
  }

  @Test
  @TestMetadata("integerLiteralsPlusAndEqual.kt")
  public void testIntegerLiteralsPlusAndEqual() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/integerLiteralsPlusAndEqual.kt");
  }

  @Test
  @TestMetadata("interpolationWithInc.kt")
  public void testInterpolationWithInc() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/interpolationWithInc.kt");
  }

  @Test
  @TestMetadata("invalidCast.kt")
  public void testInvalidCast() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/invalidCast.kt");
  }

  @Test
  @TestMetadata("javaFinalField.kt")
  public void testJavaFinalField() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/javaFinalField.kt");
  }

  @Test
  @TestMetadata("javaStaticField.kt")
  public void testJavaStaticField() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/javaStaticField.kt");
  }

  @Test
  @TestMetadata("javaStaticFinalField.kt")
  public void testJavaStaticFinalField() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/javaStaticFinalField.kt");
  }

  @Test
  @TestMetadata("javaStaticFinalLiteralField.kt")
  public void testJavaStaticFinalLiteralField() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/javaStaticFinalLiteralField.kt");
  }

  @Test
  @TestMetadata("logicExpressionWithVariableAndParentheses.kt")
  public void testLogicExpressionWithVariableAndParentheses() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/logicExpressionWithVariableAndParentheses.kt");
  }

  @Test
  @TestMetadata("namedReference_compileTimeConst.kt")
  public void testNamedReference_compileTimeConst() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/namedReference_compileTimeConst.kt");
  }

  @Test
  @TestMetadata("namedReference_userType.kt")
  public void testNamedReference_userType() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/namedReference_userType.kt");
  }

  @Test
  @TestMetadata("namedReference_val.kt")
  public void testNamedReference_val() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/namedReference_val.kt");
  }

  @Test
  @TestMetadata("namedReference_var.kt")
  public void testNamedReference_var() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/namedReference_var.kt");
  }

  @Test
  @TestMetadata("nestedAnnotationValue.kt")
  public void testNestedAnnotationValue() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/nestedAnnotationValue.kt");
  }

  @Test
  @TestMetadata("nonConstLiteralPropertyAccess.kt")
  public void testNonConstLiteralPropertyAccess() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/nonConstLiteralPropertyAccess.kt");
  }

  @Test
  @TestMetadata("nonConstPropertyAccess.kt")
  public void testNonConstPropertyAccess() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/nonConstPropertyAccess.kt");
  }

  @Test
  @TestMetadata("nullEqualsNull.kt")
  public void testNullEqualsNull() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/nullEqualsNull.kt");
  }

  @Test
  @TestMetadata("nullEqualsNullCastedToInt.kt")
  public void testNullEqualsNullCastedToInt() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/nullEqualsNullCastedToInt.kt");
  }

  @Test
  @TestMetadata("nullEqualsNullCastedToNullableInt.kt")
  public void testNullEqualsNullCastedToNullableInt() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/nullEqualsNullCastedToNullableInt.kt");
  }

  @Test
  @TestMetadata("positiveZeroEqualsNegativeZero.kt")
  public void testPositiveZeroEqualsNegativeZero() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/positiveZeroEqualsNegativeZero.kt");
  }

  @Test
  @TestMetadata("propertyInCompanionObject.kt")
  public void testPropertyInCompanionObject() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInCompanionObject.kt");
  }

  @Test
  @TestMetadata("propertyInCompanionObject_indirect.kt")
  public void testPropertyInCompanionObject_indirect() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInCompanionObject_indirect.kt");
  }

  @Test
  @TestMetadata("propertyInCompanionObject_indirect_twice.kt")
  public void testPropertyInCompanionObject_indirect_twice() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInCompanionObject_indirect_twice.kt");
  }

  @Test
  @TestMetadata("propertyInit_Byte.kt")
  public void testPropertyInit_Byte() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Byte.kt");
  }

  @Test
  @TestMetadata("propertyInit_DivByOtherProperty_const.kt")
  public void testPropertyInit_DivByOtherProperty_const() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_DivByOtherProperty_const.kt");
  }

  @Test
  @TestMetadata("propertyInit_DivByOtherProperty_val.kt")
  public void testPropertyInit_DivByOtherProperty_val() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_DivByOtherProperty_val.kt");
  }

  @Test
  @TestMetadata("propertyInit_DivByZero.kt")
  public void testPropertyInit_DivByZero() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_DivByZero.kt");
  }

  @Test
  @TestMetadata("propertyInit_Double.kt")
  public void testPropertyInit_Double() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Double.kt");
  }

  @Test
  @TestMetadata("propertyInit_Float.kt")
  public void testPropertyInit_Float() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Float.kt");
  }

  @Test
  @TestMetadata("propertyInit_Int.kt")
  public void testPropertyInit_Int() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Int.kt");
  }

  @Test
  @TestMetadata("propertyInit_Long.kt")
  public void testPropertyInit_Long() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Long.kt");
  }

  @Test
  @TestMetadata("propertyInit_UInt.kt")
  public void testPropertyInit_UInt() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_UInt.kt");
  }

  @Test
  @TestMetadata("recursiveJavaFieldsReference.kt")
  public void testRecursiveJavaFieldsReference() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/recursiveJavaFieldsReference.kt");
  }

  @Test
  @TestMetadata("recursivePropertyReference.kt")
  public void testRecursivePropertyReference() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/recursivePropertyReference.kt");
  }

  @Test
  @TestMetadata("stringLengthEquals.kt")
  public void testStringLengthEquals() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/stringLengthEquals.kt");
  }

  @Test
  @TestMetadata("stringLengthEqualsConstVal.kt")
  public void testStringLengthEqualsConstVal() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/stringLengthEqualsConstVal.kt");
  }

  @Test
  @TestMetadata("stringLiteral.kt")
  public void testStringLiteral() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/stringLiteral.kt");
  }

  @Test
  @TestMetadata("string_compareTo.kt")
  public void testString_compareTo() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_compareTo.kt");
  }

  @Test
  @TestMetadata("string_length.kt")
  public void testString_length() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_length.kt");
  }

  @Test
  @TestMetadata("string_plusMany.kt")
  public void testString_plusMany() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_plusMany.kt");
  }

  @Test
  @TestMetadata("string_plusOnce.kt")
  public void testString_plusOnce() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_plusOnce.kt");
  }

  @Test
  @TestMetadata("string_plusTwice.kt")
  public void testString_plusTwice() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_plusTwice.kt");
  }

  @Test
  @TestMetadata("string_templateConst.kt")
  public void testString_templateConst() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_templateConst.kt");
  }

  @Test
  @TestMetadata("string_templateNonConst.kt")
  public void testString_templateNonConst() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_templateNonConst.kt");
  }

  @Test
  @TestMetadata("string_toString.kt")
  public void testString_toString() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_toString.kt");
  }

  @Test
  @TestMetadata("string_trimIndent.kt")
  public void testString_trimIndent() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_trimIndent.kt");
  }

  @Test
  @TestMetadata("thisReference.kt")
  public void testThisReference() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/thisReference.kt");
  }

  @Test
  @TestMetadata("typeCheckOnConstantProperty.kt")
  public void testTypeCheckOnConstantProperty() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/typeCheckOnConstantProperty.kt");
  }

  @Test
  @TestMetadata("uIntToUShort.kt")
  public void testUIntToUShort() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/uIntToUShort.kt");
  }

  @Test
  @TestMetadata("uselessCast.kt")
  public void testUselessCast() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/uselessCast.kt");
  }

  @Test
  @TestMetadata("validQualifier.kt")
  public void testValidQualifier() {
    runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/validQualifier.kt");
  }

  @Nested
  @TestMetadata("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors")
  @TestDataPath("$PROJECT_ROOT")
  public class WithErrors {
    @Test
    public void testAllFilesPresentInWithErrors() {
      KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors"), Pattern.compile("^(.+)\\.kt$"), null, true);
    }

    @Test
    @TestMetadata("annotationWithNoArgument.kt")
    public void testAnnotationWithNoArgument() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/annotationWithNoArgument.kt");
    }

    @Test
    @TestMetadata("constFieldWithCustomGetter.kt")
    public void testConstFieldWithCustomGetter() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/constFieldWithCustomGetter.kt");
    }

    @Test
    @TestMetadata("constValPropertyWithUnresolvedType.kt")
    public void testConstValPropertyWithUnresolvedType() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/constValPropertyWithUnresolvedType.kt");
    }

    @Test
    @TestMetadata("errorQualifier.kt")
    public void testErrorQualifier() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/errorQualifier.kt");
    }

    @Test
    @TestMetadata("incompleteRange.kt")
    public void testIncompleteRange() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/incompleteRange.kt");
    }

    @Test
    @TestMetadata("invalidEquals.kt")
    public void testInvalidEquals() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/invalidEquals.kt");
    }

    @Test
    @TestMetadata("namedReference_const.kt")
    public void testNamedReference_const() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/namedReference_const.kt");
    }

    @Test
    @TestMetadata("noRightOperand.kt")
    public void testNoRightOperand() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/noRightOperand.kt");
    }

    @Test
    @TestMetadata("noRightOperandLong.kt")
    public void testNoRightOperandLong() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/noRightOperandLong.kt");
    }

    @Test
    @TestMetadata("noRightOperandUnsignedLong.kt")
    public void testNoRightOperandUnsignedLong() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/noRightOperandUnsignedLong.kt");
    }

    @Test
    @TestMetadata("nullableConstVal.kt")
    public void testNullableConstVal() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/nullableConstVal.kt");
    }

    @Test
    @TestMetadata("nullableConstValAccess.kt")
    public void testNullableConstValAccess() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/nullableConstValAccess.kt");
    }

    @Test
    @TestMetadata("nullableConstValAlias.kt")
    public void testNullableConstValAlias() {
      runTest("analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/withErrors/nullableConstValAlias.kt");
    }
  }
}
